package com.sykj.util;



import java.io.Serializable;


/**
 * 增删改查返回的对象
 * 其中包括状态码、提示信息、状态、以及根据id查询返回的对象
 * 
 * @author vains
 *
 */

public class ResponseResult implements Serializable {
	
	private Integer code;//状态码
	private String message;//提示信息
	private Boolean flag;//根据该状态判断操作是否成功
	private Object data;//保存根据id查询的对象
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Boolean getFlag() {
		return flag;
	}
	public void setFlag(Boolean flag) {
		this.flag = flag;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public ResponseResult() {
		super();
		// TODO Auto-generated constructor stub
	}
	public ResponseResult(Integer code, String message, Boolean flag, Object data) {
		super();
		this.code = code;
		this.message = message;
		this.flag = flag;
		this.data = data;
	}
	
	
	
}
